package bridgeMethod;

/**
 * Created by IntelliJ IDEA.
 * User: liuliwei
 * Date: 2018-02-06
 * Time: 下午8:39
 *
 * Description: 编译器会自动增加一个 桥接方法 参数为Object
 */
public class AClass implements AInterface<String>{
    @Override
    public void func(String s) {

    }

    public static void main(String[] args) throws NoSuchMethodException {
        AClass aClass = new AClass();
        System.out.println(aClass.getClass().getMethod("func", Object.class).isBridge());
    }
}
